﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.CodeDom;
using System.Xml.Linq;

namespace CodeDomHelper.CodeDom
{

    [Serializable()]
    public class Ctypeparamref : CDoc
    {

        public Ctypeparamref()
            : base("typeparamref")
        {

        }

        /// <summary>
        /// Initializes a new instance of the <see cref="Ctypeparamref"/> class.
        /// <typeparamref name=""/>        
        /// </summary>
        /// <param name="name">The name.</param>
        public Ctypeparamref(string name)
            : this()
        {
            Name = name;
        }

        public string Name { get; protected set; }

        internal override bool Unique { get { return false; } }

        internal override string Serialize
        {
            get
            {
                string p  = string.Format(ParamConst, "name", Name);
                return string.Format(BaliseAutotWith1ParamConst, Balise, p);
            }
        }

    }


}
